/**
 * @ Author: luoqi
 * @ Create Time: 2024-04-17 22:26
 * @ Modified by: luoqi
 * @ Modified time: 2025-07-06 22:19
 * @ Description:
 */

#ifndef _FLASH_H
#define _FLASH_H

#include <stdint.h>

int flash_init(void);

int flash_write(size_t addr, const void *data, size_t len);

int flash_read(size_t addr, void *data, size_t len);

int flash_erase(size_t addr, size_t len);

#endif
